function CngClass_1(){
 
	var NAME_1 = document.getElementById("primo");
	var NAME_2 = document.getElementById("secondo");
	var NAME_3 = document.getElementById("terzo");
	var NAME_4 = document.getElementById("quarto");
	var NAME_5 = document.getElementById("quinto");
	var NAME_text = document.getElementById("testo_valutazione");	
 
	if( NAME_1.className != "active" ){
	
		NAME_1.className="active";
		
		
	
	}else if( NAME_1.className == "active" ){
					
		NAME_2.className="";
		NAME_3.className="";
		NAME_4.className="";
		NAME_5.className="";	
		NAME_text.value="   Scarso";	
		NAME_text.style.width="67px";	

	}	
	

}

function CngClass_2(){
  
	var NAME_1 = document.getElementById("primo");
	var NAME_2 = document.getElementById("secondo");
	var NAME_3 = document.getElementById("terzo");
	var NAME_4 = document.getElementById("quarto");
	var NAME_5 = document.getElementById("quinto");
	var NAME_text = document.getElementById("testo_valutazione");	
	
	
	if( NAME_2.className != "active" ){
	
		NAME_1.className="active";
		NAME_2.className="active";	
		
	
	}else if( NAME_2.className == "active" ){
					
		
		NAME_3.className="";
		NAME_4.className="";
		NAME_5.className="";	
		NAME_text.value="   Sufficiente";
		NAME_text.style.width="91px";
	}
	
	
		
	
	

}

function CngClass_3(){
 
	var NAME_1 = document.getElementById("primo");
	var NAME_2 = document.getElementById("secondo");
	var NAME_3 = document.getElementById("terzo");
	var NAME_4 = document.getElementById("quarto");
	var NAME_5 = document.getElementById("quinto");
	var NAME_text = document.getElementById("testo_valutazione");	
 
	
	if( NAME_3.className != "active" ){
	
		NAME_1.className="active";
		NAME_2.className="active";
		NAME_3.className="active";
		
	
	}else if( NAME_3.className == "active" ){
					
		
		NAME_text.style.width="64px";
		NAME_text.value="   Buono";
		NAME_4.className="";
		NAME_5.className="";	
	}
	
		
		
	
}

function CngClass_4(){
 
	var NAME_1 = document.getElementById("primo");
	var NAME_2 = document.getElementById("secondo");
	var NAME_3 = document.getElementById("terzo");
	var NAME_4 = document.getElementById("quarto");
	var NAME_5 = document.getElementById("quinto");
	var NAME_text = document.getElementById("testo_valutazione");	
 
	if( NAME_4.className != "active" ){
	
		
		NAME_1.className="active";
		NAME_2.className="active";
		NAME_3.className="active";
		NAME_4.className="active";
		
	
	}else if( NAME_4.className == "active" ){
		
		NAME_text.value="   Molto Buono";		
		NAME_5.className="";	
		NAME_text.style.width="104px";
	}
	
	
}

function CngClass_5(){
 
	var NAME_1 = document.getElementById("primo");
	var NAME_2 = document.getElementById("secondo");
	var NAME_3 = document.getElementById("terzo");
	var NAME_4 = document.getElementById("quarto");
	var NAME_5 = document.getElementById("quinto");
	var NAME_text = document.getElementById("testo_valutazione");	
 
	
	if( NAME_5.className != "active" ){
	
		
		NAME_1.className="active";
		NAME_2.className="active";
		NAME_3.className="active";
		NAME_4.className="active";
		NAME_5.className="active";
		
	
	}else if ( NAME_5.className == "active" ){
	
		NAME_text.style.width="97px";
		NAME_text.value="   Eccellente";
	
	}
	
	
		
		
	
 
}



/* onmouseover && onmouseout */

function CngClass_1_over(){
 
	var NAME_1 = document.getElementById("primo");
	var NAME_2 = document.getElementById("secondo");
	var NAME_3 = document.getElementById("terzo");
	var NAME_4 = document.getElementById("quarto");
	var NAME_5 = document.getElementById("quinto");
	var NAME_text = document.getElementById("testo_valutazione");	
	
	if( NAME_1.className != "active" ){
	
		NAME_1.className="over_button";
		NAME_text.value="   Scarso";	
		NAME_text.style.width="67px";
	
	
	}
	
}

function CngClass_1_out(){
 
	var NAME_1 = document.getElementById("primo");
	var NAME_2 = document.getElementById("secondo");
	var NAME_3 = document.getElementById("terzo");
	var NAME_4 = document.getElementById("quarto");
	var NAME_5 = document.getElementById("quinto"); 
	var NAME_text = document.getElementById("testo_valutazione");	
	
	if( NAME_1.className != "active" ){
	
		NAME_1.className="out_button";
		NAME_text.value="   Clicca per votare";
		NAME_text.style.width="134px";
	}
	
}



function CngClass_2_over(){
 
	var NAME_1 = document.getElementById("primo");
	var NAME_2 = document.getElementById("secondo");
	var NAME_3 = document.getElementById("terzo");
	var NAME_4 = document.getElementById("quarto");
	var NAME_5 = document.getElementById("quinto"); 
	var NAME_text = document.getElementById("testo_valutazione");	
	
	if( NAME_2.className != "active" ){
	
		NAME_1.className="over_button";
		NAME_2.className="over_button";
		NAME_text.value="   Sufficiente";
		NAME_text.style.width="91px";
	}
	
}

function CngClass_2_out(){
 
	var NAME_1 = document.getElementById("primo");
	var NAME_2 = document.getElementById("secondo");
	var NAME_3 = document.getElementById("terzo");
	var NAME_4 = document.getElementById("quarto");
	var NAME_5 = document.getElementById("quinto"); 
	var NAME_text = document.getElementById("testo_valutazione");	
	
	if( NAME_2.className != "active" ){
	
		NAME_1.className="out_button";
		NAME_2.className="out_button";
		NAME_text.value="   Clicca per votare";
		NAME_text.style.width="134px";
	}
	
}

function CngClass_3_over(){
 
	var NAME_1 = document.getElementById("primo");
	var NAME_2 = document.getElementById("secondo");
	var NAME_3 = document.getElementById("terzo");
	var NAME_4 = document.getElementById("quarto");
	var NAME_5 = document.getElementById("quinto");
	var NAME_text = document.getElementById("testo_valutazione");		
	
	if( NAME_3.className != "active" ){	

	NAME_1.className="over_button";
	NAME_2.className="over_button";
	NAME_3.className="over_button";
	NAME_text.value="   Buono";
	NAME_text.style.width="64px";
	
	}
	
	
}

function CngClass_3_out(){
 
	var NAME_1 = document.getElementById("primo");
	var NAME_2 = document.getElementById("secondo");
	var NAME_3 = document.getElementById("terzo");
	var NAME_4 = document.getElementById("quarto");
	var NAME_5 = document.getElementById("quinto"); 
	var NAME_text = document.getElementById("testo_valutazione");	
	
	if( NAME_3.className != "active" ){
	
			NAME_1.className="out_button";
			NAME_2.className="out_button";
			NAME_3.className="out_button";
			NAME_text.value="   Clicca per votare";
			NAME_text.style.width="134px";
	}
	
	
	
}

function CngClass_4_over(){
 
	var NAME_1 = document.getElementById("primo");
	var NAME_2 = document.getElementById("secondo");
	var NAME_3 = document.getElementById("terzo");
	var NAME_4 = document.getElementById("quarto");
	var NAME_5 = document.getElementById("quinto"); 
	var NAME_text = document.getElementById("testo_valutazione");	
	
	if( NAME_4.className != "active" ){
	
	NAME_1.className="over_button";
	NAME_2.className="over_button";
	NAME_3.className="over_button";
	NAME_4.className="over_button";
	NAME_text.value="   Molto Buono";
	NAME_text.style.width="104px";
	
	}
}

function CngClass_4_out(){
 
	var NAME_1 = document.getElementById("primo");
	var NAME_2 = document.getElementById("secondo");
	var NAME_3 = document.getElementById("terzo");
	var NAME_4 = document.getElementById("quarto");
	var NAME_5 = document.getElementById("quinto"); 
	var NAME_text = document.getElementById("testo_valutazione");	
	
	if( NAME_4.className != "active" ){
	
			NAME_1.className="out_button";
			NAME_2.className="out_button";
			NAME_3.className="out_button";
			NAME_4.className="out_button";
			NAME_text.value="   Clicca per votare";
			NAME_text.style.width="134px";
	}
	
	
}

function CngClass_5_over(){
 
	var NAME_1 = document.getElementById("primo");
	var NAME_2 = document.getElementById("secondo");
	var NAME_3 = document.getElementById("terzo");
	var NAME_4 = document.getElementById("quarto");
	var NAME_5 = document.getElementById("quinto"); 
	var NAME_text = document.getElementById("testo_valutazione");	
	
	if( NAME_5.className != "active" ){
	
	NAME_1.className="over_button";
	NAME_2.className="over_button";
	NAME_3.className="over_button";
	NAME_4.className="over_button";
	NAME_5.className="over_button";
	NAME_text.value="   Eccellente";
	NAME_text.style.width="97px";
	}
}

function CngClass_5_out(){
 
	var NAME_1 = document.getElementById("primo");
	var NAME_2 = document.getElementById("secondo");
	var NAME_3 = document.getElementById("terzo");
	var NAME_4 = document.getElementById("quarto");
	var NAME_5 = document.getElementById("quinto"); 
	var NAME_text = document.getElementById("testo_valutazione");	
	
	
	if( NAME_5.className != "active" ){
	
			NAME_1.className="out_button";
			NAME_2.className="out_button";
			NAME_3.className="out_button";
			NAME_4.className="out_button";
			NAME_5.className="out_button";
			NAME_text.value="   Clicca per votare";
			NAME_text.style.width="134px";
	}
	
	
	
}